package com.data.sample.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.data.sample.entity.EquipmentUnit;
import com.data.sample.entity.OpcUaProtocol;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * OPC UA通讯协议信息 Mapper 接口
 * @author zhaocx
 * @date 2025-10-24
 */
@Mapper
public interface OpcUaProtocolMapper extends BaseMapper<OpcUaProtocol> {

    /**
     * 根据机组ID查询所有通讯协议
     * @param unitId 站场代号
     * @return 机组列表
     */
    List<OpcUaProtocol> selectByUnitId(@Param("unitId") String unitId);
}

